#ifndef HELPVIEWER_H
#define HELPVIEWER_H

#include <QTextBrowser>
#include <QHelpEngine>

class HelpViewer : public QTextBrowser
{
public:
    HelpViewer(QWidget *parent);

    void setHelpEngine(QHelpEngine *helpEngine);
    QVariant loadResource(int type, const QUrl &name);
    void setSource(const QUrl& name);

private:
    QHelpEngine *helpEngine;
};

#endif // HELPVIEWER_H
